/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.com.ingsw.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author kerife
 */
@Entity
@Table(name = "fechaextem")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Fechaextem.findAll", query = "SELECT f FROM Fechaextem f"),
    @NamedQuery(name = "Fechaextem.findByIdFechaextem", query = "SELECT f FROM Fechaextem f WHERE f.idFechaextem = :idFechaextem"),
    @NamedQuery(name = "Fechaextem.findByFechaextem", query = "SELECT f FROM Fechaextem f WHERE f.fechaextem = :fechaextem"),
    @NamedQuery(name = "Fechaextem.findByHoraextem", query = "SELECT f FROM Fechaextem f WHERE f.horaextem = :horaextem")})
public class Fechaextem implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "id_fechaextem")
    private Integer idFechaextem;
    @Column(name = "fechaextem")
    @Temporal(TemporalType.DATE)
    private Date fechaextem;
    @Column(name = "horaextem")
    @Temporal(TemporalType.TIME)
    private Date horaextem;

    public Fechaextem() {
    }

    public Fechaextem(Integer idFechaextem) {
        this.idFechaextem = idFechaextem;
    }

    public Integer getIdFechaextem() {
        return idFechaextem;
    }

    public void setIdFechaextem(Integer idFechaextem) {
        this.idFechaextem = idFechaextem;
    }

    public Date getFechaextem() {
        return fechaextem;
    }

    public void setFechaextem(Date fechaextem) {
        this.fechaextem = fechaextem;
    }

    public Date getHoraextem() {
        return horaextem;
    }

    public void setHoraextem(Date horaextem) {
        this.horaextem = horaextem;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idFechaextem != null ? idFechaextem.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Fechaextem)) {
            return false;
        }
        Fechaextem other = (Fechaextem) object;
        if ((this.idFechaextem == null && other.idFechaextem != null) || (this.idFechaextem != null && !this.idFechaextem.equals(other.idFechaextem))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "mx.com.ingsw.model.Fechaextem[ idFechaextem=" + idFechaextem + " ]";
    }
    
}
